<?php
/* Project iSite
*  Author: iHao
*  File: /core/core.php
*  Usage: AJAX core
*/

DEFINE('ISITE', 1);
require('ajax.php');

if (isset($_GET['m'])) {
	$m = strtolower(trim($_GET['m']));
} else {
	$m = 'null';
}

$a = new AJAXServer();

switch ($m) {
	default:
	case 'null':
		$a->ioList();
		break;
	
	case 'com_add':
		break;
		
	case 'com_list':
		if (isset($_GET['board_name'])) {}
		$a->ioList();
		break;
	
	case 'com_remove':
		break;
		
	case 'fav_topic_add':
		break;
}

?>
